﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SmartRoute.Data
{
    public class ErrorRoutingService : IRoutingService
    {
        private string errorMessage = "Some object was initialized without a valid routing service";
        public Route FromTo(Location ignored1, Location ignored2)
        {
            throw new InvalidOperationException(errorMessage);
        }
        public ErrorRoutingService() { }
        public ErrorRoutingService(string error){ errorMessage = error; }
    }
}
